#ifndef OPTIONSSTATE_H
#define OPTIONSSTATE_H
#include "ResourceManager.h"
#include "State.h"
#include <fstream>
#include "Settings.h"
#include "Button.h"
#include "CheckBox.h"

class OptionsState : public sfge::State
{
    public:
        void init();
        void cleanup();

        void handle();
        void update();
        void draw();
        void resume(){};
        void pause(){};

        static OptionsState* Instance(sf::RenderWindow* window, sfge::StateManager* mgr)
       	{
       	    if(optionsState == NULL)
                optionsState = new OptionsState(window, mgr);
            return optionsState;
        }

    private:
        OptionsState(sf::RenderWindow* window, sfge::StateManager* mgr);
        ~OptionsState();

        void checkButtons(float x, float y);
        void clicked(float x, float y);
        sf::Sprite background;
        sf::Sprite speakerSprite;
        sf::Sprite cursorSprite;
        Button* backButton;
        CheckBox* clapBox;
        CheckBox* spaceBox;
        CheckBox* musicBox;

        static OptionsState* optionsState;
};

#endif // OPTIONSSTATE_H
